package com.ruoyi.project.hissystem.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

/**
 * @author : 杨磊
 * @date : 21:17 2021/8/17
 */
public class HisDepartment extends BaseEntity {


        /**
         * 导出表格的时候，一个属性名对应的一列，  注解上的name中的属性值 对应的是表头名
         */

        /** 科室序号 */
        @Excel(name = "科室ID", cellType = Excel.ColumnType.NUMERIC)
        private Long  departId;

        @Excel(name = "科室名称")
        private String departName;

        @Excel(name = "科室编码")
        private  String departCode;

        @Excel(name = "当前挂号量")
        private String departNum;

        @Excel(name = "科室负责人")
        private  String departPerson;

        @Excel(name = "手机号")
        private String phonenumber;

        @Excel(name = "科室排序码", cellType = Excel.ColumnType.NUMERIC)
        private Long departPxCode;

         /** 状态（0正常 1停用） */
        @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
        private String status;


    @Override
    public String toString() {
        return "HisDepartment{" +
              "departId=" + departId +
              ", departName='" + departName + '\'' +
              ", departCode='" + departCode + '\'' +
              ", departNum='" + departNum + '\'' +
              ", departPerson='" + departPerson + '\'' +
              ", phonenumber='" + phonenumber + '\'' +
              ", departPxCode=" + departPxCode +
              ", status='" + status + '\'' +
              '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HisDepartment that = (HisDepartment) o;
        return Objects.equals(departId, that.departId) && Objects.equals(departName, that.departName) && Objects.equals(departCode, that.departCode) && Objects.equals(departNum, that.departNum) && Objects.equals(departPerson, that.departPerson) && Objects.equals(phonenumber, that.phonenumber) && Objects.equals(departPxCode, that.departPxCode) && Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(departId, departName, departCode, departNum, departPerson, phonenumber, departPxCode, status);
    }

    public Long getDepartId() {
        return departId;
    }

    public void setDepartId(Long departId) {
        this.departId = departId;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        this.departName = departName;
    }

    public String getDepartCode() {
        return departCode;
    }

    public void setDepartCode(String departCode) {
        this.departCode = departCode;
    }

    public String getDepartNum() {
        return departNum;
    }

    public void setDepartNum(String departNum) {
        this.departNum = departNum;
    }

    public String getDepartPerson() {
        return departPerson;
    }

    public void setDepartPerson(String departPerson) {
        this.departPerson = departPerson;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public Long getDepartPxCode() {
        return departPxCode;
    }

    public void setDepartPxCode(Long departPxCode) {
        this.departPxCode = departPxCode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public HisDepartment(Long departId, String departName, String departCode, String departNum, String departPerson, String phonenumber, Long departPxCode, String status) {
        this.departId = departId;
        this.departName = departName;
        this.departCode = departCode;
        this.departNum = departNum;
        this.departPerson = departPerson;
        this.phonenumber = phonenumber;
        this.departPxCode = departPxCode;
        this.status = status;
    }

    public HisDepartment() {
    }
}
